package com.leyou.search.entity;

import com.leyou.common.bean.PageResult;
import com.leyou.item.inter.pojo.Brand;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;
import java.util.Map;

/**
 * @author zqq
 * @ClassName SearchResult
 * @Description
 * @date 2020/3/9-8:56
 */
public class SearchResult extends PageResult<Goods> {

    /** 分类集合 */
    @ApiModelProperty(value = "分类集合", name = "categories")
    private List<Map<String, Object>> categories;

    /** 品牌集合 */
    @ApiModelProperty(value = "品牌集合", name = "brands")
    private List<Brand> brands;

    /** 规格参数 */
    @ApiModelProperty(value = "规格参数", name = "specs")
    private List<Map<String, Object>> specs;

    public SearchResult() {
    }

    public SearchResult(List<Map<String, Object>> categories, List<Brand> brands,List<Map<String, Object>> specs) {
        this.categories = categories;
        this.brands = brands;
        this.specs = specs;
    }

    public SearchResult(List<Goods> items, Long total, List<Map<String, Object>> categories, List<Brand> brands,List<Map<String, Object>> specs) {
        super(total, items);
        this.categories = categories;
        this.brands = brands;
        this.specs = specs;
    }

    public SearchResult(List<Goods> items, Long total, Integer totalPage, List<Map<String, Object>> categories, List<Brand> brands,List<Map<String, Object>> specs) {
        super(total, totalPage, items);
        this.categories = categories;
        this.brands = brands;
        this.specs = specs;
    }

    public List<Map<String, Object>> getCategories() {
        return categories;
    }

    public void setCategories(List<Map<String, Object>> categories) {
        this.categories = categories;
    }

    public List<Brand> getBrands() {
        return brands;
    }

    public void setBrands(List<Brand> brands) {
        this.brands = brands;
    }

    public List<Map<String, Object>> getSpecs() {
        return specs;
    }

    public void setSpecs(List<Map<String, Object>> specs) {
        this.specs = specs;
    }
}
